<template>
  <div class="mvmore">
    <div class="title">MV</div>
    <div class="mvmore-concent">
      <div class="mvmore-item" v-for="item of mvmore" :key="item.id" @click="handleDetail(item.id)">
        <img :src="item.cover" alt="" />
        <p>{{ item.name }}</p>
        <p>{{item.artistName}}</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      mvmore: [],
    };
  },
  mounted() {
    this.$http.get("/mv/first").then((res) => {
      this.mvmore = res.data.data;
    });
  },
  methods:{
    handleDetail(val){
      this.$router.push(`/mvdetail?id=${val}`)
    }
  }
};
</script>

<style scoped>
.mvmore {
  width: 1200px;
  margin: 0 auto;
  margin-top: 30px;
}
.title {
  line-height: 30px;
  border-bottom: 3px solid #9bb1ff;
}
.mvmore-concent {
  padding: 20px 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.mvmore-item {
  margin-top: 30px;
  width: 340px;
  height: 240px;
}
.mvmore-item img {
  border-radius: 20px;
  width: 340px;
  height: 220px;
}
</style>